Importing importatn lubraries

Getting data from NSE official website

Enter the stock name(listed symbol)

f you want to get data of NIFTY or BANKNIFTY then answer 'YES' if you want to get data of stocks then asnwer 'NO'

after this enter the stock name(listed symbol) or index name(NIFTY/BANKNIFTY), remember the stock symbols are case sensitie so kindly enter proper symbol

Data Cleaning

Nifty Next 50 outperformed other broad market indexes in the last decade though lost momentum in the last two years.

Resampling

All the minimum values of index per year

Nifty50 Open Maximum values plotting by bar chart

we can see deep in market in 2020 due to covid but after few months markte recoverd so fast and even made all time high

we can see increase in volumes after covid in 2020 (Volume is the amount of an asset or security that changes hands over some period of time, often over the course of a day. For instance, stock trading volume would refer to the number of shares of a security traded between its daily open and close.)

Nifty 50 behavior during each time unit is represented in the form of a candle. If the closing price of a stock is higher than open price during a particular time period, then the candle is green, if the close price is below the open price then the candle is red. Each candle has a body and two wicks. The distance between open to close is represented by the body of a candle and the upper and lower wicks represent the highs and lows of a candle.

Stocks Emerge From Covid Crash With Historic 12-Month Run

we will implement prophet model now

importing all the important librarieas

fitting model

WE WILL IMPLEMENT LSTM MODEL NOW

report performance

another model of LSTM

auto_arima

we will implement Nbeats model